package com.yqg.education.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * train_class 实体类
 *
 * @author 张芸博
 * @since 2025-04-10
 */
@Getter
@Setter
@TableName("train_class")
public class TrainClass implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 培训班级编号
     */
    private String trainClassNum;

    /**
     * 培训档期ID
     */
    private Long stageId;

    /**
     * 班主任ID
     */
    private Long manageId;

    /**
     * 班级人数
     */
    @TableField(exist = false)
    private Integer classSize;

    /**
     * 班级状态 0活跃；1结业
     */
    private Integer state;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 是否删除
     */
    private Integer isDelete;

    @TableField(exist = false)
    private String manageName;

    @TableField(exist = false)
    private String stageNum;
}
